package com.ruoyi.yn.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.yn.domain.YnRecycler;
import com.ruoyi.yn.vo.YnRecyclerVo;
import com.ruoyi.yn.mapper.YnRecyclerMapper;
import com.ruoyi.yn.service.IYnRecyclerService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 回收员Service业务层处理
 *
 * @author Ming
 * @date 2023-04-24
 */
@Service
public class YnRecyclerServiceImpl extends ServiceImpl<YnRecyclerMapper, YnRecycler> implements IYnRecyclerService {

    @Override
    public TableDataInfo<YnRecyclerVo> queryList(YnRecyclerVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<YnRecyclerVo> queryAll(YnRecyclerVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public YnRecyclerVo queryById(String id) {
        return this.baseMapper.queryById(id);
    }
}
